package com.example.booksystem.service;

import com.example.booksystem.model.Book;

import java.sql.SQLException;
import java.util.List;

public interface BookService {
    List<Book> selectBook(String text) throws SQLException;
    List<Book> selectAllBook() throws SQLException;

    Boolean deleteBook(Book book) throws SQLException;

    Boolean updateBook(Book book) throws SQLException;

    Boolean borrowBook(Book book,Integer userId)throws SQLException;

    Boolean insertBook(Book book) throws SQLException;
    List<Book> selectBorrowBook(Integer userId)throws SQLException;
    Boolean returnBook(Integer userId,String bookId)throws SQLException;
}
